<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .modal {
      position: fixed;
      top: 50%;
      left: 50%;
      width: 500px;
      height: 500px;
      margin: -250px 0 0 -250px;
      box-shadow: 1px 3px 5px #999;
    }
    .modal header {
      padding: 0 15px;
      line-height: 50px;
      color: #fff;
      font-size: 18px;
      background-color: #ccc;
      box-sizing: border-box;
    }

    .modal.success header {
      background-color: #1aa15f;
    }
    .modal.warning header {
      background-color: #ffce44;
    }
    .modal.error header {
      background-color: #dd001b;
    }
  </style>
</head>
<body>
  <div class="wrapper">
    <div class="modal">
      <header>Modal</header>
    </div>
    <div class="btn-group">
      <button data-status="S">成功模态框</button>
      <button data-status="W">警告模态框</button>
      <button data-status="E">失败模态框</button>
    </div>
  </div>

  <script type="module" src="http://localhost:3333/factory-mode/index.js"></script>
</body>
</html>